{scene.name}
{scene.description}
{sceneAction}import Link from "next/link"; import { getDictionary, type Locale } from "@/lib/site-content"; export default async function HomePage({ params, }: { params: Promise<{ locale: string }>; }) { const { locale } = await params; const typedLocale = locale as Locale; const dictionary = getDictionary(typedLocale); const isZh = typedLocale === "zh"; const integrationTitle = isZh ? "popiartcli 接入原生流程" : "Native integration flow for popiartcli"; const integrationSubtitle = isZh ? "按照以下步骤,将 popiartcli 无缝接入你的 agent 工作流" : "Follow these steps to plug popiartcli directly into your coding agent workflow."; const stepOneTitle = isZh ? "复制安装指令到你的环境" : "Copy the install command into your environment"; const stepOneHint = isZh ? "先安装 CLI,再登录获取产品层 key" : "Install the CLI first, then sign in to get the product-layer key."; const stepTwoTitle = isZh ? "执行 bootstrap,让 PopiArt 在你的 agent 环境中可发现" : "Run bootstrap so PopiArt becomes discoverable in your agent environment."; const stepTwoHint = isZh ? "生成 completion、默认 discovery profile,并接入 Codex / OpenCode / OpenClaw" : "Generate completion, default discovery profiles, and wire into Codex, OpenCode, or OpenClaw."; const stepThreeTitle = isZh ? "如需轮换或重置产品层 token,请前往控制台管理密钥" : "Rotate or reset the product-layer token from the console when needed."; const stepThreeHint = isZh ? "使用 API key 与 session,而不是把 provider 密钥直接分发到本地环境" : "Use API keys and sessions instead of distributing raw provider credentials to local machines."; const stepFourTitle = isZh ? "了解更多功能及服务使用须知,请查看开发者文档" : "Read the developer docs for capabilities, runtime behavior, and usage guidance."; const docsAction = isZh ? "查看开发者文档" : "Open developer docs"; const installAction = isZh ? "登录" : "Sign in"; const bootstrapAction = isZh ? "查看 Quick Start" : "Open Quick Start"; const consoleAction = isZh ? "前往控制台" : "Open console"; const sceneAction = isZh ? "了解更多" : "Learn more"; return (
{dictionary.home.subtitle}
{dictionary.home.stageDescription}
{dictionary.home.scenesSubtitle}
{scene.description}
{sceneAction}{integrationSubtitle}
{dictionary.home.installMethods[0]?.command}
{dictionary.home.bootstrapCommand}
{dictionary.pricing.subtitle}
{plan.summary}